home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #define VERSION_ON_FILE 1
- #define VERSION_FILE_BUILD 1
- #include "version.c"
-
- void
- main (argc, argv)
- int argc;
- char *argv[];
- {
- FILE *fp;
- char file[256];
-
- if (argc < 2) {
- printf ("mkvers: syntax error - no TNOS root directory given\n");
- exit (0);
- }
- sprintf (file, "%s/spool/help/version.hlp", argv[1]);
- if (freopen (file, "w", stdout) == NULL) {
- fprintf (stderr, "mkvers: can't open version file '%s'\n", file);
- exit (errno);
- }
- fprintf (stderr, "Creating new TNOS VersionFile....\n");
- fflush (stderr);
- doversion (0, (char **) 0, (void *) 0);
- }
-